package com.zatech.cgnci.project.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zatech.cgnci.project.dto.CgnciApprovalConfigQueryDTO;
import com.zatech.cgnci.project.entity.CgnciApprovalConfigDO;
import com.zatech.cgnci.project.mapper.CgnciApprovalConfigMapper;
import com.zatech.cgnci.project.service.CgnciApprovalConfigService;
import com.zatech.cgnci.project.vo.CgnciApprovalConfigNodeVO;
import com.zatech.cgnci.project.vo.CgnciApprovalConfigPageVO;
import com.zatech.cgnci.project.vo.CgnciApprovalConfigVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 审批流程节点规则配置表 服务实现类
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Service
public class CgnciApprovalConfigServiceImpl extends ServiceImpl<CgnciApprovalConfigMapper, CgnciApprovalConfigDO> implements CgnciApprovalConfigService {

    @Override
    public List<CgnciApprovalConfigVO> listTaskType() {
        return this.baseMapper.listTaskType();
    }

    @Override
    public List<String> listTaskTypeCode(String taskTypeCode) {
        return this.baseMapper.listTaskTypeCode(taskTypeCode);
    }

    @Override
    public IPage<CgnciApprovalConfigPageVO> pageApprovalConfig(CgnciApprovalConfigQueryDTO queryDTO) {
        return this.baseMapper.pageApprovalConfig(queryDTO.toPage(), queryDTO);
    }

    @Override
    public List<CgnciApprovalConfigNodeVO> listApprovalNode(String taskType) {
        return this.baseMapper.listApprovalNode(taskType);
    }
}
